<template>
  <div>
    <!-- 如果配置id则以此id来建立textarea -->
      <mc-kindeditor :data.sync="outContent" @on-change="changeEditor" style="height: 300px"></mc-kindeditor>
<!--       <mc-kindeditor :data.sync="outContent2" file-upload="admin/common_file_rest/upload" @on-change="changeEditor"></mc-kindeditor> -->
  </div>
</template>

<script>
import McKindeditor from './components/McKindeditor'



export default {
    data(){
      return {
        outContent: "欢迎体验富文本",
        outContent2: "欢迎体验mc-kindeditor",
      }
    },
    components:{
      McKindeditor
    },
    mounted(){
      
    },
    methods:{
        changeEditor(html){
            console.log(this.outContent);
            console.log(this.outContent2);
        }
    }
}
</script>

<style>

</style>
